<?php
error_reporting( E_ALL|E_STRICT);

// Define path to application directory
defined('APPLICATION_PATH')
    || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
    
defined('APPLICATION_URL')
    || define('APPLICATION_URL', dirname($_SERVER['PHP_SELF']));
// Define application environment
defined('APPLICATION_ENV')
    || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
defined('DOC_PATH')
    || define('DOC_PATH', realpath(dirname(__FILE__) . '/../data'));
// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
	//realpath('/usr/local/lomitko/lib/ZendFramework-1.10.0/library/'),
    realpath(dirname(__FILE__) . '/../library') , 
   // get_include_path(),
)));

/** Zend_Application */
require_once 'Zend/Application.php';  

// Create application, bootstrap, and run
$application = new Zend_Application(
    APPLICATION_ENV, 
    APPLICATION_PATH . '/configs/application.ini'
);
$application->bootstrap()
            ->run();